﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Media;
using System.Windows;
using System.Windows.Controls;

namespace InteractiveMapApp
{
    abstract class AnimationObject : Image
    {
        protected MatrixTransform matrixTransform;
        protected Random random;
        protected Storyboard AnimationStoryboard;
        protected double mainWidth;
        protected double mainHeight;

        protected AnimationObject()
        {
            this.IsHitTestVisible = false;
            this.Unloaded += new RoutedEventHandler(AnimationObject_Unloaded);
        }

        void AnimationObject_Unloaded(object sender, RoutedEventArgs e)
        {
            Source = null;
            matrixTransform = null;
            AnimationStoryboard = null;
        }
    }
}
